import 'package:blue_plugin_example/base/get_common_view.dart';
import 'package:blue_plugin_example/controller/link_dev_controller.dart';
import 'package:blue_plugin_example/routes/routes.dart';
import 'package:flutter/material.dart';
import 'package:get/get.dart';

class LinkDev extends GetCommonView<LinkDevController> {
  const LinkDev({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text("蓝牙设备测试"),
      ),
      body: Center(
        child: Column(
          crossAxisAlignment: CrossAxisAlignment.center,
          children: [
            ElevatedButton(
              onPressed: () => Get.toNamed(Routes.plugRoute),
              child: const Text("血压协议连接"),
            ),
            ElevatedButton(
              onPressed: () => Get.toNamed(Routes.xueTangPage),
              child: const Text("血糖协议连接"),
            ),
            ElevatedButton(
              onPressed: () => {
                Get.toNamed(Routes.testSDKPage),
              },
              child: const Text("尿液SDK交互"),
            ),
          ],
        ),
      ),
    );
  }

  getIntentInfo() {}
}
